
<fieldset><legend>原物料</legend>
{[include file="material/amount/_view.tpl"]}
</fieldset>

<fieldset><legend>新物料</legend>
<form id="form_add"><input type="hidden" name="id" value="{[$smarty.request.id]}" />
<input type="hidden" name="place" value="{[$result.place]}" />
<input type="hidden" name="a_name" value="{[$result.name]}" />
<input type="hidden" name="a_standard" value="{[$result.standard]}" />
<input type="hidden" name="a_unit" value="{[$result.unit]}" />
<input type="hidden" name="a_price" id="a_price" value="{[$result.price|string_price]}" />
<table>
	<tr>
		<td align="right">数量：</td>
		<td><input type="text" name="a_amount" id="a_amount" size="12" value="{[$result.amount|string_float]}"></td>
		<td align="right">单位：</td>
		<td>{[$result.unit]}</td>
	</tr>
	<tr>
		<td align="right">名称：</td>
		<td colspan="3"><textarea rows="2" name="name" cols="55">{[$result.name]}</textarea></td>
	</tr>
	<tr>
		<td align="right">规格：</td>
		<td colspan="3"><textarea rows="2" name="standard" cols="55">{[$result.standard]}</textarea></td>
	</tr>
	<tr>
		<td align="right">数量：</td>
		<td><input type="text" name="amount" id="amount" size="12" value=""></td>
		<td align="right">单位：</td>
		<td><input type="text" name="unit" id="unit" size="6" value=""><select name='unit_t' id='unit_t'>
      {[html_options options=$unit_option selected=-]}
      </select></td>
	</tr>
	<tr>
		<td width="20%" align="right">单价：</td>
		<td width="30%"><input type="text" name="price" id="price" size="12" value=""></td>
		<td width="20%" align="right"></td>
		<td width="30%"></td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="２" name="content" cols="55">{[$result.content]}</textarea></td>
	</tr>
</table>
</form>
</fieldset>

<script type="text/javascript" src="js/material/amount/exchange.js?r={[$smarty.now]}"></script>
